package org.nothing.ordermaster.service.impl;

import org.nothing.ordermaster.dao.SellerInfoDAO;
import org.nothing.ordermaster.service.SellerInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.nothing.ordermaster.entity.SellerInfo;

import javax.transaction.Transactional;

/**
 * 卖家端用户信息Service实现类
 */
@Service
@Transactional
class SellerInfoServiceImpl implements SellerInfoService
{
    /** 卖家信息DAO */
    @Autowired
    private SellerInfoDAO sellerInfoDAO;

    /**
     * 通过openid查询卖家端信息
     */
    public SellerInfo findSellerInfoByOpenid(String openid)
    {
        return sellerInfoDAO.findByOpenid(openid);
    }
}
